package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Admin;
import com.bean.AllDate;
import com.bean.Ciname;
import com.bean.Filming;
import com.bean.Users;
import com.mapper.AdminMapper;

@Service
public class AdminServiceImpl implements AdminService {
      
	@Autowired
	private AdminMapper adminMapper;
	
	
	public AdminMapper getAdminMapper() {
		return adminMapper;
	}

	public void setAdminMapper(AdminMapper adminMapper) {
		this.adminMapper = adminMapper;
	}

	@Override
	public Integer deleteUser(Integer uid) {
		// TODO Auto-generated method stub
		return adminMapper.deleteUser(uid);
	}

	@Override
	public Integer updateUser(Integer uid) {
		// TODO Auto-generated method stub
		return adminMapper.updateUser(uid);
	}


	@Override
	public Users findUserById(Integer uid) {
		// TODO Auto-generated method stub
		return adminMapper.findUserById(uid);
	}

	
	@Override
	public  List<Users> findUserByLike(String userName) {
		// TODO Auto-generated method stub
		return adminMapper.findUserByLike(userName);
	}

	@Override
	public Integer changeUserStatus(Integer uid,Integer status) {
		// TODO Auto-generated method stub
		return adminMapper.changeUserStatus(uid,status);
	}

	@Override
	public List<Users> findUserByStatus(Integer status) {
		// TODO Auto-generated method stub
		return adminMapper.findUserByStatus(status);
	}

	@Override
	public Admin AdminLogin(String adminName, String adminPassword) {
		// TODO Auto-generated method stub
		return adminMapper.AdminLogin(adminName, adminPassword);
	}

	@Override
	public List<Admin> findAdmin() {
		// TODO Auto-generated method stub
		return adminMapper.findAdmin();
	}

	@Override
	public List<Filming> findFilms() {
		// TODO Auto-generated method stub
		return adminMapper.findFilms();
	}

	@Override
	public List<Filming> findFilmsByLike(String fname) {
		// TODO Auto-generated method stub
		return adminMapper.findFilmsByLike(fname);
	}

	@Override
	public Integer changeFilmStatus(Integer fid, Integer status) {
		// TODO Auto-generated method stub
		return adminMapper.changeFilmStatus(fid, status);
	}

	@Override
	public List<Filming> findFilmByStatus(Integer status) {
		// TODO Auto-generated method stub
		return adminMapper.findFilmByStatus(status);
	}

	@Override
	public List<Ciname> findCiname() {
		// TODO Auto-generated method stub
		return adminMapper.findCiname();
	}

	@Override
	public List<Ciname> findCinameByLike(String cname) {
		// TODO Auto-generated method stub
		return adminMapper.findCinameByLike(cname);
	}

	@Override
	public Integer changeCinameStatus(Integer cid, Integer status) {
		// TODO Auto-generated method stub
		return adminMapper.changeCinameStatus(cid, status);
	}

	@Override
	public List<Ciname> findCinameByStatus(Integer status) {
		// TODO Auto-generated method stub
		return adminMapper.findCinameByStatus(status);
	}

	@Override
	public List<AllDate> findDate() {
		// TODO Auto-generated method stub
		return adminMapper.findDate();
	}

	@Override
	public Integer addData(AllDate allDate) {
		// TODO Auto-generated method stub
		return adminMapper.addData(allDate);
	}

	@Override
	public List<Users> findUsers(Integer startNum, Integer endNum) {
		// TODO Auto-generated method stub
		return adminMapper.findUsers(startNum, endNum);
	}

	@Override
	public Integer userSise() {
		// TODO Auto-generated method stub
		return adminMapper.userSise();
	}

}
